﻿#r @"..\Microsoft.SharePoint.Client (spo)\Microsoft.SharePoint.Client.dll"
#r @"..\Microsoft.SharePoint.Client (spo)\Microsoft.SharePoint.Client.Runtime.dll"

#load "Client.fs"

open Client
open Microsoft.SharePoint.Client
open Microsoft.SharePoint.Client.Application
open System.Security;

// =======================================================
// Work with navigation
// =======================================================

let web = Client.Context.Web
Client.Load web

let ql = web.Navigation.QuickLaunch
Client.Load ql

ql.Count

ql.Item(1)